package com.hc.model.code03.test4;

/**
 * @version v1.0
 * @ClassName: FriedRice
 * @Description: 炒饭（具体构件角色）
 * @Author: HC
 */
public class FriedRice extends FastFood{

    @Override
    public float cost() {
        return getPrice();
    }

    public FriedRice() {
        super(10, "炒饭");
    }
}
